import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { HttpClientModule } from '@angular/common/http';
 
import { App } from './app.component';
import { HomePage } from '../pages/home/home';
//我的余额
import { ListPage } from '../pages/list/list'   ;
//我的购买
import { BuyPage } from '../pages/buy/buy';
//我的提货
import { TihuoPage } from '../pages/tihuo/tihuo';
// //我的地址
import { AddressPage } from '../pages/address/address';
// //我的银行卡
import { BankcardPage } from '../pages/bankcard/bankcard';
//我的卡bao
import { CardPage } from '../pages/card/card';
// //卡淘淘游戏
import { KataotaoPage } from '../pages/kataotao/kataotao';
// //客服
import { KefuPage } from '../pages/kefu/kefu';
//登陆
import { LoginPage } from '../pages/login/login';
// //设置
import { SettingPage } from '../pages/setting/setting';
//专卖
import { ZhuanmaiPage } from '../pages/zhuanmai/zhuanmai';  
//注册
import { RegisterPage } from '../pages/register/register';
//用户中心
import { UserinfoPage } from '../pages/userinfo/userinfo';
//massage
import { MassagePage } from '../pages/massage/massage'; 
//确认订单
import { ConfirmOrderPage } from '../pages/confirm-order/confirm-order';
//添加银行卡
import { AddBankPage } from '../pages/add-bank/add-bank';
//余额充值
import { BalanceRechargePage } from '../pages/balance-recharge/balance-recharge';
//设置密码
import { SetpaypwdPage } from '../pages/setpaypwd/setpaypwd';
//新地址
import { NewaddressPage } from '../pages/newaddress/newaddress';
//余额详情
import { BalanceinfoPage } from '../pages/balanceinfo/balanceinfo';
//余额提现
import { WithdrawcashPage } from '../pages/withdrawcash/withdrawcash';
//http

//首页轮播详情
import { HomeBannerPage } from '../pages/home-banner/home-banner';

//商品详情
import { GoodsInfoPage } from '../pages/goods-info/goods-info';
//选择地址
import { ChioceAddressPage } from '../pages/chioce-address/chioce-address';
//提货申请
import { TihuoApplyPage } from '../pages/tihuo-apply/tihuo-apply';
//转卖详情
import { ZhuanmaiDetailPage } from '../pages/zhuanmai-detail/zhuanmai-detail';
//新名字
import { NewNamePage } from '../pages/new-name/new-name';
//完成页面
import { OrderComplatePage } from '../pages/order-complate/order-complate';
//添加银行卡二级页面
import { AddBankTwoPage } from '../pages/add-bank-two/add-bank-two';
//账户与安全
import { AccountAndSafePage } from '../pages/account-and-safe/account-and-safe';
//服务协议
import { ServiceAgreementPage } from "../pages/service-agreement/service-agreement"

//地区选择
import { MultiPickerDirective, } from '../directives/multi-picker';
//关于我们
import { AboutPage } from '../pages/about/about';

//账号绑定
import { ChangePhonePage } from '../pages/change-phone/change-phone';
//修改手机号
import { AccountBindPage } from '../pages/account-bind/account-bind';
//代理
import { DailiPage } from '../pages/daili/daili';
//ant
// import { NgZorroAntdModule } from 'ng-zorro-antd';
import { InAppBrowser } from '@ionic-native/in-app-browser';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
@NgModule({
    declarations: [
        App,
        HomePage,
        ListPage, 
        BuyPage,
        TihuoPage,  
        CardPage,
        ZhuanmaiPage,
        BankcardPage,
        AddressPage,  
        KefuPage,
        LoginPage,
        SettingPage,
        UserinfoPage,
        MassagePage,
        ConfirmOrderPage,
        AddBankPage,  
        BalanceRechargePage,
        SetpaypwdPage,
        NewaddressPage,
        BalanceinfoPage,
        WithdrawcashPage,
        GoodsInfoPage,
        ChioceAddressPage,
        TihuoApplyPage,
        ZhuanmaiDetailPage,
        NewNamePage,
        OrderComplatePage,
        AddBankTwoPage,
        AccountAndSafePage,
        RegisterPage,
        MultiPickerDirective,
        AboutPage,
        ChangePhonePage,
        AccountBindPage,
        DailiPage,
        HomeBannerPage,
        ServiceAgreementPage,
        //不能修改
        KataotaoPage,
    ],
    imports: [
        BrowserModule,
        HttpClientModule,  
        IonicModule.forRoot(App,{
            backButtonText: '返回', iconMode: 'ios',//安卓icon强制使用ios的icon以及样式
            mode: 'md',//样式强制使用imd样式
        }),  
        // NgZorroAntdModule.forRoot(),
    ],
    bootstrap: [IonicApp], 
    entryComponents: [
        App,
        HomePage,
        ListPage,
        BuyPage,
        TihuoPage,  
        CardPage,
        ZhuanmaiPage,
        BankcardPage,
        AddressPage,
        KefuPage,
        ServiceAgreementPage,
        SettingPage,
        UserinfoPage,
        LoginPage,
        MassagePage,
        ConfirmOrderPage,
        AddBankPage,
        BalanceRechargePage,
        SetpaypwdPage,
        HomeBannerPage,
        NewaddressPage,
        BalanceinfoPage,
        WithdrawcashPage, 
        GoodsInfoPage,
        ChioceAddressPage,
        TihuoApplyPage,
        ZhuanmaiDetailPage,
        NewNamePage,
        OrderComplatePage,
        AddBankTwoPage,
        AccountAndSafePage,
        RegisterPage,
        AboutPage,
        ChangePhonePage,
        AccountBindPage,
        DailiPage,

        //不能修改
        KataotaoPage,
    ],
    providers: [
        StatusBar,
        InAppBrowser,
        SplashScreen,
        {provide: ErrorHandler, useClass: IonicErrorHandler}
    ]
})
export class AppModule {}
